<?php /* Smarty version 2.6.26, created on 2013-10-10 15:06:02
         compiled from ./admin/category_add.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../templates/admin/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="main-div">
  <form action="category.php?act=insert" method="post" name="theForm" enctype="multipart/form-data">
  <table width="100%" id="general-table">
      <tr>
        <td class="label">添加分类:</td>
        <td>
          <input type='text' name='cat_name' maxlength="20" value='' size='27' /> <font color="red">*</font>
        </td>
      </tr>
      <tr>
        <td class="label">上级分类:</td>
        <td>
          <select name="parent_id">
                        <option value="0">顶级栏目</option>
                        <?php if ($this->_tpl_vars['category'] != ''): ?>
                        <?php $_from = 'category_list'; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
                        <option value="<?php echo $this->_tpl_vars['list']['cat_id']; ?>
"><?php echo $this->_tpl_vars['list']['lev']; ?>
321<?php echo $this->_tpl_vars['list']['cat_name']; ?>
</option>
                        <?php endforeach; endif; unset($_from); ?>
                        <?php endif; ?>
						</select>
        </td>
      </tr>
      </table>
      <div class="button-div">
        <input type="submit" value="确定" />
        <input type="reset" value="重置" />
      </div>
  </form>
</div>

<div id="footer">
共执行 3 个查询，用时 0.021687 秒，Gzip 已禁用，内存占用 2.081 MB<br />
版权所有 &copy; 2005-2010 上海商派网络科技有限公司，并保留所有权利。</div>

</body>
</html>